home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / pc / files / p_misc / 7p203upp.exe / V203SRC.LZH / U_MAKE < prev    next >
Text File  |  1992-06-03  |  2KB  |  66 lines

  1. #
  2. # Makefile for 7PLUS under UNIX
  3. #
  4.  
  5. # choose your target for the Makefile.
  6. # for MessDOS you should choose "7plus.exe".
  7. TARGET = 7plus
  8. #TARGET = 7plus.exe
  9.  
  10. # define the object suffix of your system.
  11. # for MessDOS you should define "obj".
  12. O = o
  13. #O = obj
  14.  
  15. # choose compiler and linker and their flags
  16. # GNU cc
  17. CC = gcc
  18. LD = gcc
  19. CFLAGS = -O -W -ansi
  20. LDFLAGS = -s -ansi
  21.  
  22. # ordinary cc (must be ANSI)
  23. #CC = cc
  24. #LD = cc
  25. #CFLAGS = -O
  26. #LDFLAGS = -s
  27.  
  28. # choose defines and special flags for your system:
  29. # - normally: no defines
  30. # - AT&T System V Release 4, SCO UNIX (no gcc): -D__unix__ -DSYSV
  31. #DEFINES = -D__unix__ -DSYSV
  32. DEFINES =
  33. # - BSD, Ultrix, AT&T System V Release 4, SCO UNIX/XENIX: no special flags
  34. # - Interactive UNIX 386: -posix
  35. #SPECFLAGS = -posix
  36. SPECFLAGS =
  37.  
  38. SRCS =  7plus.c  encode.c  correct.c rebuild.c  decode.c \
  39.         extract.c join.c  utils.c  unix.c
  40.  
  41. OBJS =  7plus.$O encode.$O correct.$O rebuild.$O decode.$O \
  42.         extract.$O join.$O utils.$O unix.$O
  43.  
  44. .c.o:
  45.     $(CC) -c $(CFLAGS) $(SPECFLAGS) $(DEFINES) $*.c
  46.  
  47. TARGET: $(OBJS)
  48.     $(LD) $(LDFLAGS) $(SPECFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
  49.  
  50. depend:
  51.     $(CC) -M $(SRCS) >depend.out
  52.  
  53. clean:
  54.     rm -f $(OBJS)
  55.     rm -f $(TARGET) core a.out depend.out
  56.  
  57. 7plus.o : 7plus.c 7plus.h
  58. encode.o : encode.c 7plus.h globals.h 
  59. rebuild.o : rebuild.c 7plus.h globals.h 
  60. decode.o : decode.c 7plus.h globals.h 
  61. correct.o : correct.c 7plus.h globals.h
  62. extract.o : extract.c 7plus.h globals.h 
  63. join.o : join.c 7plus.h globals.h 
  64. utils.o : utils.c 7plus.h globals.h 
  65. unix.o : unix.c 7plus.h
  66.